<%-- 
    Document   : purchaseList
    Created on : 08/04/2009, 08:56:54 AM
    Author     : Joel Chuca
--%>

<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="purchase.title"/></title>
    <meta name="heading" content="<fmt:message key='purchaseList.heading'/>"/>
     <meta name="menu" content="RolePurchaser"/>
</head>

<c:set var="buttons">
    <input type="button" onclick="location.href='<c:url value="/mainMenu.html"/>'"
           value="<fmt:message key="button.done"/>"/>    
</c:set>

<c:out value="${buttons}" escapeXml="false" />

<s:set name="purchases" value="purchases" scope="request"/>

<display:table name="purchases"  class="table" id="purchaseUnPaidForm" export="true" requestURI="" pagesize="10">
    <display:column sortable="true" href="purchasePayments.html" paramId="id" paramProperty="id">
    <img src="<c:url value="/images/edit.png" />" alt="Edit" />
    </display:column>
    <display:column property="dateFormatted" sortable="true" titleKey="purchase.date"/>
    <display:column property="supplier.firstName" sortable="true" titleKey="purchase.supplier"/>
    <display:column property="totalPrice" sortable="true" titleKey="purchase.totalPrice"/>
    <display:column property="discount" sortable="true" titleKey="purchase.discount"/>
    <display:column property="realPrice" sortable="true" titleKey="purchase.realPrice"/>
    <display:column property="restPrice" sortable="true" titleKey="purchase.restPrice"/>
    <display:column property="coin.name" sortable="true" titleKey="purchase.coin"/>

    <display:setProperty name="paging.banner.item_name" value="purchase detail"/>
    <display:setProperty name="paging.banner.items_name" value="purchase details"/>

    <display:setProperty name="export.excel.filename" value="PurchaseDetail List.xls"/>
    <display:setProperty name="export.csv.filename" value="PurchaseDetail List.csv"/>
    <display:setProperty name="export.pdf.filename" value="PurchaseDetail List.pdf"/>
</display:table>


<c:out value="${buttons}" escapeXml="false" />

<script type="text/javascript">
    highlightTableRows("purchaseUnPaidForm");
</script>